package ysutils

import (
	"bytes"
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/util/gutil"
)

func DumpToString(value interface{}, option gutil.DumpOption) string {
	buf := bytes.NewBuffer(nil)
	g.DumpTo(buf, value, option)
	return buf.String()
}
